import java.util.Arrays;
import java.util.Random;
import java.util.Scanner;

public class random3 {
    public static double[] generateRandomNum(int n,double A,double B){
        int a = (int)A * 100;
        int b = (int)B * 100;
        double[] RandomNum = new double[n];
        Random random = new Random();

        for(int i = 0;i < n;i ++){
            double Num = random.nextInt(b - a) + a;
            RandomNum[i] = Num / 100;
        }
        return RandomNum;
    }
    public static void myToString(double[] a) {

        int iMax = a.length - 1;
        if (iMax == -1)
            System.out.println(" ");
        for (double v : a) {
            System.out.printf("%.2f,", v);
        }
    }
    public static double[] mySort(double[] array) {
        Arrays.sort(array);
        for (int i = 0; i < array.length / 2; i++) {
            double temp;
            temp = array[i];
            array[i] = array[array.length - 1 - i];
            array[array.length- 1 - i] = temp;
        }
        return array;
    }
    public static void main(String[] args) {
        System.out.println("请输入要生成的随机数的个数：");
        Scanner scan = new Scanner(System.in);

        int n = scan.nextInt();
        System.out.println("请输入要生成的随机数的范围：");
        Scanner scan1 = new Scanner(System.in);

        int a;
        a = scan1.nextInt();
        int b;
        b = scan1.nextInt();

        double[] RandomNum = generateRandomNum(n,a,b);

        myToString(mySort(RandomNum));
    }
}
